<template>
  <MdPreview v-model="content"/>
</template>

<script>
import {MdEditor, MdPreview} from 'md-editor-v3';

export default {
  name: "Markdown",
  components: {MdEditor, MdPreview},
  expose: ['setContent'],
  data() {
    return {
      content: '',
    }
  },
  mounted() {
  },
  methods: {
    setContent(content) {
      this.content = content
    }
  }
}
</script>

<style scoped>

</style>
